package net.jiastudy.biz.targettask.entity;

import io.swagger.annotations.ApiModelProperty;

import java.util.List;

public class YearTaskTree {
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "任务年度code")
    private String code;

    @ApiModelProperty(value = "任务年度名称")
    private String title;

    private List<TargetTaskTree> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTitle() {
        return title;
    }

    public String getLabel() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getYear() {
        return id;
    }

    public String getType() {
        return "year";
    }

    public List<TargetTaskTree> getChildren() {
        return children;
    }

    public void setChildren(List<TargetTaskTree> children) {
        this.children = children;
    }
}
